package org.spring.data.jpa.demo.dao;

import org.spring.data.jpa.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @date 2021/9/6
 * @auther uranus
 */
public interface UserDao extends JpaSpecificationExecutor<User>,
        JpaRepository<User,String> {
    List<User> findByName(String name);

    User findByUsername(String username);

    
}
